﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Douban.Api.Authorization
{
    public class DesktopOAuthAuthorization : OAuthAuthorization
    {
        private static readonly ServiceProviderDescriptor ProviderDescriptor = new ServiceProviderDescriptor
        {
            RequestTokenEndpoint = new Endpoint("http://www.douban.com/service/auth/request_token"),
            AuthorizeEndpoint = new Endpoint("http://www.douban.com/service/auth/authorize"),
            AccessTokenEndpoint = new Endpoint("http://www.douban.com/service/auth/access_token")
        };

        public DesktopOAuthAuthorization(ConsumerBase consumer) : base(consumer) { }

        public override ServiceProviderDescriptor GetServiceProviderDescriptor()
        {
            return ProviderDescriptor;
        }
    }
}
